package com.edu.exam.enums.assessment;

import com.edu.exam.enums.core.BaseEnum;

/**
 * 作业类型枚举
 */
public enum JobType implements BaseEnum {
    BATCH_GENERATION("BATCH_GENERATION", "批量生成"),
    SINGLE_GENERATION("SINGLE_GENERATION", "单个生成"),
    AUTO_GENERATION("AUTO_GENERATION", "自动生成"),
    MANUAL_GENERATION("MANUAL_GENERATION", "手动生成"),
    IMPORT("IMPORT", "导入"),
    EXPORT("EXPORT", "导出"),
    SYNC("SYNC", "同步"),
    VALIDATION("VALIDATION", "验证"),
    CONVERSION("CONVERSION", "转换"),
    CLEANUP("CLEANUP", "清理"),
    REPORT("REPORT", "报告"),
    ARCHIVE("ARCHIVE", "归档"),
    BACKUP("BACKUP", "备份"),
    RESTORE("RESTORE", "恢复");

    private final String code;
    private final String description;

    JobType(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
